<link rel="stylesheet" href="__STATIC__/admin/css/welcome.css?v={:time()}" media="all">
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>数据统计</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-md2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-blue">实时</span>
                                                        <h5>文章总数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$count.article}</h1>
<!--                                                        <small>当前分类总记录数</small>-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-cyan">实时</span>
                                                        <h5>今日新增文章</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$today.article}</h1>
<!--                                                        <small>当前分类总记录数</small>-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-orange">实时</span>
                                                        <h5>待审核文章</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$count.article_nocheck}</h1>
<!--                                                        <small>当前分类总记录数</small>-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-green">实时</span>
                                                        <h5>今日采集文章</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$today.article_collect}</h1>
<!--                                                        <small>当前分类总记录数</small>-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-blue">实时</span>
                                                        <h5>用户总数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$count.user}</h1>
                                                        <!--                                                        <small>当前分类总记录数</small>-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-md2">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-cyan">实时</span>
                                                        <h5>今日新增用户</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$today.user}</h1>
<!--                                                        <small>当前分类总记录数</small>-->
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-credit-card icon icon-blue"></i>快捷入口</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10 layuimini-qiuck">

                                        {foreach $quicks as $vo}
                                        <div class="layui-col-md2 layuimini-qiuck-module">
                                            <a layuimini-content-href="{:url($vo['href'])}" data-title="{$vo['title']}">
                                                <i class="{$vo['icon']|raw}"></i>
                                                <cite>{$vo['title']}</cite>
                                            </a>
                                        </div>
                                        {/foreach}

                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
<!--                    <div class="layui-col-md12">-->
<!--                        <div class="layui-card">-->
<!--                            <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>报表统计</div>-->
<!--                            <div class="layui-card-body">-->
<!--                                <div id="echarts-records" style="width: 100%;min-height:500px"></div>-->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
                </div>
            </div>

            <div class="layui-col-md12">



                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-fire icon"></i>版本信息</div>
                    <div class="layui-card-body layui-text">
                        <table class="layui-table">
                            <colgroup>
                                <col width="100">
                                <col>
                            </colgroup>
                            <tbody>
                            <?php $version=sysconfig('version');?>
                            <tr>
                                <td>系统名称</td>
                                <td>
                                    LAYSNS {if $version}{$version['name']}{/if}
                                </td>
                            </tr>
                            <tr>
                                <td>当前版本</td>

                                <td>{if $version} v{$version['version']} 最后更新：{$version['updated']}{/if} <span style="cursor:pointer" id="checkUpdate">检查更新</span></td>
                            </tr>
                            <tr>
                                <td>主要特色</td>
                                <td>轻量 / 易上手 / 极简</td>
                            </tr>
                            <tr>
                                <td>特别鸣谢</td>
                                <td>ThinkPHP，LayUI，EasyAdmin</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>